package com.cn.crmsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import java.util.Date;

@ApiModel(value = "发票数据实体类")
public class Invoice {
  @Id
  @ApiModelProperty("发票编号(不用传值,用来关联其他表)")
  private Integer invoice_id;
  @ApiModelProperty("发票编号")
  private String invoice_number;
  @ApiModelProperty("订单编号")
  private Integer order_id;
  @ApiModelProperty("商品金额")
  private double commodity_money;
  @ApiModelProperty("创建人id")
  private Integer create_id;
  @ApiModelProperty("创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date creation_time;
  @ApiModelProperty("删除状态（0：显示，1：隐藏）")
  private Integer delete_state;
  @ApiModelProperty("发票依据")
  private String invoice_basis;


  public Integer getInvoice_id() {
    return invoice_id;
  }

  public void setInvoice_id(Integer invoice_id) {
    this.invoice_id = invoice_id;
  }

  public String getInvoice_number() {
    return invoice_number;
  }

  public void setInvoice_number(String invoice_number) {
    this.invoice_number = invoice_number;
  }

  public Integer getOrder_id() {
    return order_id;
  }

  public void setOrder_id(Integer order_id) {
    this.order_id = order_id;
  }

  public double getCommodity_money() {
    return commodity_money;
  }

  public void setCommodity_money(double commodity_money) {
    this.commodity_money = commodity_money;
  }

  public Integer getCreate_id() {
    return create_id;
  }

  public void setCreate_id(Integer create_id) {
    this.create_id = create_id;
  }

  public Date getCreation_time() {
    return creation_time;
  }

  public void setCreation_time(Date creation_time) {
    this.creation_time = creation_time;
  }

  public Integer getDelete_state() {
    return delete_state;
  }

  public void setDelete_state(Integer delete_state) {
    this.delete_state = delete_state;
  }

  public String getInvoice_basis() {
    return invoice_basis;
  }

  public void setInvoice_basis(String invoice_basis) {
    this.invoice_basis = invoice_basis;
  }
}
